<?php
/*\
 *  ExtJS - oh.framework
 *  --------------------
 *  name: extjs
 *  sign: 7
 *	date: 
 *  desc: high level ui to develop rich web apps
\*/	oh_module_header();

require_once(dirname(__FILE__)."/evalmath.class.php");

// Interface function   
function oh_function_evalmath($tokens) {
	return oh_this();
} 

// Main class
class oh_class_evalmath { 
	var $processor = array();
	function oh_class_evalmath() {
		global $oh;		
		$this->processor[0] = new EvalMath;
	}	
	function parse($e) {
		if (trim($e)) {
			return $this->processor[0]->evaluate($e);
		} 
		return "";
	}
}
